package org.peterf.foxish.util;

import android.content.Context;
import android.content.res.Resources;

/**
 * A class for fetching resources.
 * 
 * @author peter
 * 
 */
public class ResourceUtil {

    private static Context context;

    public static Resources getResources() {
        return context.getResources();
    }

    /**
     * Get a resource string.
     * 
     * @param resId
     *            The string id.
     * @return The string.
     */
    public static String getString(int resId) {
        return context.getString(resId);
    }

    public static void setContext(Context context) {
        ResourceUtil.context = context;
    }

}
